package com.h1909d.weinfo.presenter;

import com.h1909d.weinfo.base.BasePresenter;
import com.h1909d.weinfo.bean.HotBean;
import com.h1909d.weinfo.model.HotModel;
import com.h1909d.weinfo.net.ResultCallBack;
import com.h1909d.weinfo.view.DailyNewsView;
import com.h1909d.weinfo.view.HotView;

public class HotPresenter extends BasePresenter<HotView> {

    private HotModel hotModel;

    @Override
    protected void initModel() {
        addModel(hotModel);
        hotModel = new HotModel();
    }
    public void getLastHot(){
        hotModel.getLasteHot(new ResultCallBack<HotBean>() {
            @Override
            public void onSuccess(HotBean hotBean) {
                mView.setData(hotBean);
            }

            @Override
            public void onFail(String msg) {

            }
        });
    }
}
